/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "Application.h"

using namespace OgreCamNav;

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
#else
	int main(int argc, char **argv)
#endif
	{
		try{
			Application::getSingleton().init();
			Application::getSingleton().start();
			
		}catch(Ogre::Exception &e){
			MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
		}
		
	}
